package com.ordering.constant;

public class Constants
{
    
    public static final String FILE_PATH = "";
    public static final String FILE_HEAD = "";
    
    //网站商品最大单次购买数量
    public static final int MAX_BUY_QTY = 99;//单个商品最大购买数量


    // 系统操作IP
    public static final String SYSTEM_IP = "127.0.0.1";

    // 系统操作类型
    public static final String SYSTEM_OPERATOR_Type = "SYSTEM";


    // 加密失败
    public static final String CRYPT_FAILED = "加密失败";

    // 记住最后访问过的url
    public static final String SESSION_LAST_VISIT_URL = "lastvisiturl";

    // 导出文件的
    public static final String SPACING_WORD = "-#-";

    // 缺货商品种类
    public static final String LACK_PRODUCT_NUM = "lackproductnum";

    // 告警商品种类
    public static final String STORAGE_PRODUCT_ALERM_NUM = "alermproductnum";

    /**
     * 登录是否被踢掉
     */
    public static final String SESSION_KEY_ISOUTLOGIN = "isOutlogin";
    
    /**
     * 用户ID
     */
    public static final String SESSION_KEY_USER_ID = "userid";

    /**
     * 商家用户ID(大)
     */
    public static final String SESSION_KEY_PROVIDER_USER_ID = "provider_userid";

    /**
     * 商家用户ID（小）
     */
    public static final String SESSION_KEY_PROVIDER_USER_ID2 = "provider_userid2";

    /**
     * Session中存储着用户类型（普通用户，商户，管理员等）的key值
     */
    public static final String SESSION_KEY_USER_TYPE = "usertype";

    /**
     * Session中存储着用户名称的key值
     */
    public static final String SESSION_KEY_USER_NAME = "username";

    /**
     * Session中存储着用户
     */
    public static final String SESSION_KEY_USER = "mcpuser";

    /**
     * Session中存储着渠道商用户
     */
    public static final String SESSION_KEY_BUSTICKETUSER = "busticketUser";

    /**
     * Session中存储着用户上次登录时间的key值
     */
    public static final String SESSION_KEY_LAST_LOGINTIME = "lastlogintime";

    /**
     * Session中存储着用户上次登录时间的key值(转换后)
     */
    public static final String SESSION_CONVERT_KEY_LAST_LOGINTIME = "convertlastlogintime";

    /**
     * Session中存储着用户最近登录时间的key值
     */
    public static final String SESSION_KEY_LOGINTIME = "logintime";
    /**
     * Session中存储着商户的名称
     */
    public static final String SESSION_KEY_PROVIDER_NAME = "providername";

    /**
     * session中存储着商户编号的key值
     */
    public static final String SESSION_KEY_PROVIDER_ID = "providerId";
    /**
     * Session中存储着商户登陆名称的key值
     */
    public static final String SESSION_KEY_PROVIDER_LOGINNAME = "loginname";

    /**
     * Session中存储着该商户账号是否为管理员key值
     */
    public static final String SESSION_KEY_PROVIDER_ADMIN = "providerAdmin";
    
    /**
     * Session中存储是否是分店商家
     */
    public static final String SESSION_KEY_PROVIDER_USER_TYPE = "providerUserType";
    
    /**
     * Session中存储分店编号
     */
    public static final String SESSION_KEY_SUBBRANCH_ID = "subbranchId";

    /**
     * 敏感词级别
     */
    public static final int FORBID_WORDS = 1;

    public static final int WARN_WORDS = 0;

    /**
     * cookie中存储着购物车
     */
    public static final String COOKIE_KEY_MOBILE_SHOPINGCART = "mobileCart";

    // cookie names

    /**
     * 记录最后浏览的商品的cookie的名称
     */
    public static final String COOKIE_LAST_VISIT_PRODUCTS = "_productsLastVisit";

    // 支付订单的类型：从网页购买商品
    public static final String PAY_ORDER_TYPE_BUY_GOODS_FROM_WEB = "BUY_GOODS_FROM_WEB";

    // 订单状态改变
    public static final String ORDER_CHANGE = "ORDER_CHANGE";

    // wap或无线城市标识
    public static final String WAP_WIRELESS_FLAG = "WAP_WIRELESS_FLAG";
    public static final String WAP_WIRELESS_FLAG_VALUE = "WAP_WIRELESS_FLAG_VALUE";

    // WEB访问标识
    public static final String TYPE_VISIT_WEB = "1";

    /**
     * 系统中的用户类型
     * @version:
     * @projectName MCPR01V00
     * @companyName EXPRESSTHOUGHT
     * @author wanghuazhou
     * @date Jul 11, 2008
     */
    public static enum UserType {

        /**
         * 未知用户
         */
        VISITOR,

        /**
         * 普通用户
         */
        USER,

        /**
         * 商户
         */
        PROVIDER,

        /**
         * 管理员
         */
        ADMINISTRATOR,

        /**
         * 系统
         */
        SYSTEM,
        /**
         * 分店用户
         */
        SUBBRANCH_USER
    }



}
